﻿//-----------------------------------------------------------------------
// <copyright file="UserServiceFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.ChargeModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.SecurityModule;

    public static class UserServiceFactory
    {
        public static UserService CreateUserService(
                                    string name,
                                    string description,
                                    int serviceTimeUnit,
                                    int serviceDuration,
                                    int nannyMax,
                                    int recommendNannyMax,
                                    int nannyRecommendTotalMonth,
                                    int refreshPerDay,
                                    int nannyVipTotalMonth,
                                    int corporationVipTotalMonth,
                                    bool isViewUserContact,
                                    bool isProvideInternetMarketing,
                                    bool isProvideIMSupport,
                                    bool isProvidePreContract,
                                    decimal price,
                                    bool isProvideTrain,
                                    int status,
                                    IList<UserAccount> UserAccounts,
                                    DateTime editTime,
                                    string editUser)
        {
            UserService userService = new UserService();
            userService.Description = description;
            userService.EditTime = editTime;
            userService.EditUser = editUser;
            userService.IsProvideIMSupport = isProvideIMSupport;
            userService.IsProvideInternetMarketing = isProvideInternetMarketing;
            userService.IsProvidePreContract = isProvidePreContract;
            userService.IsProvideTrain = isProvideTrain;
            userService.IsViewUserContact = isViewUserContact;
            userService.Name = name;
            userService.NannyMax = nannyMax;
            userService.Price = price;
            userService.RecommendNannyMax = recommendNannyMax;
            userService.NannyRecommendTotalMonth = nannyRecommendTotalMonth;
            userService.RefreshPerDay = refreshPerDay;
            userService.ServiceDuration = serviceDuration;
            userService.ServiceTimeUnit = serviceTimeUnit;
            userService.Status = status;
            userService.UserAccounts = UserAccounts;
            userService.NannyVipTotalMonth = nannyVipTotalMonth;
            userService.CorporationVipTotalMonth = corporationVipTotalMonth;
            userService.CreateTime = DateTime.Now;

            return userService;
        }
    }
}
